package com.lyc.ssm.service.impl;

import com.lyc.ssm.dao.TeacherMapper;
import com.lyc.ssm.domain.Teacher;
import com.lyc.ssm.service.ITeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TeacherServiceImpl implements ITeacherService {

    @Autowired
    private TeacherMapper teacherMapper;

    public int addTeacher(Teacher teacher) {
        return teacherMapper.insertSelective(teacher);
    }
}
